package com.mdxl.second.dao;

import com.mdxl.second.Entity.AdminEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminRepository extends MongoRepository<AdminEntity,String> {
    Page<AdminEntity> findByAccount(String account,Pageable pageable);//字段account，分页条件
    Page<AdminEntity> findByAccountAndCreateAtBetween(String account,String startTime,String endTime,Pageable pageable);
    Page<AdminEntity> findByAccountAndNickNameLike(String account,String  nickName,Pageable pageable);
}
